package com.fang.singleton;

/**
 * @author fanglingxiao
 * @version 1.0
 * @description TODO
 * @date 2022/4/22 11:03 上午
 **/
public class StaticInnerClassSingleton {

    public static StaticInnerClassSingleton getInstance() {
        return InstanceHolder.INSTANCE;
    }

    private static class InstanceHolder {
        private static final StaticInnerClassSingleton INSTANCE = new StaticInnerClassSingleton();
    }
}
